package com.ler.yrmall.product.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ler.yrmall.config.BigDecimalSerialize;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author Leron
 * @version 1.0
 * sku 最低价格、销量信息
 */
@Data
public class SpuSaleMinPriceVO implements Serializable {

    @JsonSerialize(using = ToStringSerializer.class)
    private Long spuId;

    /**
     * 总销量
     */
    private Integer saleCount;

    /**
     * 最小价格
     */
    @JsonSerialize(using = BigDecimalSerialize.class)
    private BigDecimal minPrice;

}
